var readline = require('readline-sync')
readline.setDefaultOptions({ prompt: '' })
var readline = readline.prompt
let arr = readline().split(' ').map((item) => parseInt(item)) // 转换成数字
let k = arr[arr.length - 1]
arr.pop()